function gadgetLoad(){
}

function submitTweet(){
  url = "http://twitter.com/statuses/update.json";
  var params = {};
  var post_data = {};
  post_data[status] = $('#tweet').val();
  
  params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON;
  params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.OAUTH;
  params[gadgets.io.RequestParameters.OAUTH_SERVICE_NAME] = "twitter";
  params[gadgets.io.RequestParameters.OAUTH_CONSUMER_KEY] = "NgUggYVRuKwkkQggUZ8xA";
  params[gadgets.io.RequestParameters.OAUTH_USE_TOKEN] = "always";
  params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.POST;
  params[gadgets.io.RequestParameters.POST_DATA] = post_data;

  gadgets.io.makeRequest(url,processResult,params);
}

function processResult(result){

  var res = result;

}

gadgets.util.registerOnLoadHandler(gadgetLoad);

